home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lantools / landrvrs / extract.bat next >
DOS Batch File  |  1990-05-30  |  2KB  |  88 lines

  1. @echo off
  2. cls
  3.  
  4. echo.Please have 1 blank, formatted, low density, 5-1/4" disk ready before doing
  5. echo.the extraction process.  You will also need to have PKUNZIP in the same
  6. echo.directory as the ZIPed file, or in a directory listed in your PATH statement.
  7. echo.
  8. echo.You will also want to have labeled your disk as directed in the README file.
  9. echo.
  10. echo.If you do not have the above conditions met, please press (control-c) and
  11. echo.answer Y the the "Abort batch file?" question right now to abort, or you may
  12. pause
  13.  
  14. cls
  15. echo.Please insert the disk into Drive A: that is labeled:
  16. echo.
  17. echo.     AST LAN Drivers Diskette, Version 1.10
  18. echo.
  19. echo.          AST Part Number 910332-301 B
  20. echo.
  21. pause
  22. pkunzip -d NETDVRS.ZIP a:\
  23. if ERRORLEVEL 51 goto ERR51
  24. if ERRORLEVEL 50 goto ERR50
  25. if ERRORLEVEL 10 goto ERR10
  26. if ERRORLEVEL  9 goto ERR9
  27. if ERRORLEVEL  4 goto ERR4
  28. if ERRORLEVEL  2 goto ERR2
  29. if ERRORLEVEL  1 goto ERR1
  30.  
  31. goto END
  32.  
  33. :ERR51
  34. echo.
  35. echo.Unexpected EOF in ZIP file
  36. echo.
  37. echo.You will need to download the file again.
  38. goto EXIT
  39.  
  40. :ERR50
  41. echo.
  42. echo.Disk Full
  43. echo.
  44. echo.Start over again from scratch, you may have forget to put in the right disk.
  45. goto EXIT
  46.  
  47. :ERR10
  48. echo.
  49. echo.No files found to extract/view etc
  50. echo.
  51. echo.The ZIP files are not in the same directory as the EXTRACT batch file.
  52. goto EXIT
  53.  
  54. :ERR9
  55. echo.
  56. echo.Bad or illegal parameters specified
  57. echo.
  58. echo.You will need to download the file again, or you have an old version of PKUNZIP.
  59. goto EXIT
  60.  
  61. :ERR4
  62. echo.
  63. echo.File not found (i.e. No ZIP files found)
  64. echo.
  65. echo.The ZIP files are not in the same directory as the EXTRACT batch file.
  66. goto EXIT
  67.  
  68. :ERR2
  69. echo.
  70. echo.Error in ZIP file
  71. echo.
  72. echo.You will need to download the file again.
  73. goto EXIT
  74.  
  75. :ERR1
  76. echo.
  77. echo.Warning error (such as failed CRC check).
  78. echo.
  79. echo.You will need to download the file again.
  80. goto EXIT
  81.  
  82. :EXIT
  83. echo.   
  84. goto END
  85.  
  86. :END
  87. echo.
  88.